package net.cyue.ort.llm.util;

import net.cyue.ort.llm.template.ModelChatMessage;

import java.util.List;

/**
 * 默认提示引擎实现
 * 封装现有的PromptPreprocessor
 */
public class DefaultPromptEngine implements PromptEngine {
    private final PromptPreprocessor preprocessor;
    
    public DefaultPromptEngine(PromptPreprocessor preprocessor) {
        this.preprocessor = preprocessor;
    }
    
    @Override
    public String applyChatTemplate(List<ModelChatMessage> messages) {
        return preprocessor.preprocess(messages);
    }
    
    public PromptPreprocessor getPreprocessor() {
        return preprocessor;
    }
}

